/*
 * @Descripttion: 
 * @Author: yubo
 * @Date: 2022-07-08 14:51:53
 * @LastEditTime: 2022-09-27 13:56:31
 */
#pragma once

//#include <Windows.h>
#include <string.h>
#include <stdio.h>
#include <string>

char* rtrim(char* str);
char* ltrim(char* str);
char* alltrim(char* str);
char* GetValue_KeepBlank(const char* src, char* dest, int size, int num, char ch);
char* GetValue(const char* src, char* dest, int size, int num, char ch); 
int GetValueInt(const char* src, int num, char ch);
int GetDateTimeFromString(const char* str);
char* FormatTime(char* out, int size, int time);
char* FormatTime(char* out, int size, const char* str);
int FormatTimeAndReturnSize(char* out, int size, int time);

char* convert(char* src);

int Base2Chr_WithAdd(unsigned char  n, char* out);
char* Base64Encode_WithAdd(char* out, int len, const char* str, int str_len);

void TransTimeString(const std::string& time, std::string& local_date, std::string& local_time);
